@import './variables.scss';


$subMenuBg: rgba(0,0,0,.2);
$menuHover:rgba(0,124,232,.12);

.sidebar-container {
    left: 0;
    top:$headerBarHeight ;
    height: calc(100vh - 60px);
    position: fixed;
    z-index: 10;
    width: $sideBarWidth;
    box-sizing: border-box;
    
    .el-scrollbar,.scrollbar-wrapper {
        height: 100%;
        overflow-x: hidden;
    }
    
    .menu-wrapper {
        //margin-bottom: 1px;
    }
    
    .el-submenu__icon-arrow {
        right: 15px;
    }
    
    .el-menu {
        border: none;
        
        span,i {
            color: rgba(255,255,255,.8);
        }
        
        i:not(.el-submenu__icon-arrow) {
            margin-right: 10px;
            font-size: 18px;
        }
        span {
            font-size: 14px;
        }
        
        a,a:hover {
            text-decoration: none;
        }
        
        .submenu-title-noDropdown {
            height:50px;
            line-height: 50px;
            
            &:before {
                transition: .3s;
                content: "";
                display: block;
                width: 3px;
                height: 100%;
                position: absolute;
                left: -3px;
                top: 0;
                background:$mainBlue;
            }
            
            &.is-active,&:hover,&:focus {
                background: rgba(0,124,232,.12);
                
                span,i {
                    color: #fff;
                }
                
                &:before {
                    left: 0;
                }
            }
        }
        
        
        .el-submenu {
            
            &:hover,&.is-opened {
                background: rgba(0,0,0,.2);
            }
            
            .el-submenu__title {
                padding: 0 15px 0 20px;
                background: none;
                height: 50px;
                line-height: 50px;
            }
            
            ul.el-menu {
                padding: 10px 0;
                border-top: 1px solid rgba(255,255,255,.1);
                background: none;
                
                li {
                    padding: 0 15px 0 53px !important;
                    position: relative;
                    height: 45px;
                    line-height: 45px;
                    
                    &:before {
                        transition: .3s;
                        content: "";
                        display: block;
                        width: 3px;
                        height: 100%;
                        position: absolute;
                        left: -3px;
                        top: 0;
                        background:$mainBlue;
                    }
                    
                    &.is-active,&:hover,&:focus {
                        background: rgba(0,124,232,.12);
                        
                        span,i {
                            color: #fff;
                        }
                        
                        &:before {
                            left: 0;
                        }
                    }
                }
            }
        }
        
    }
    
}
